/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Profile.java
 *
 * Created on Feb 19, 2009, 12:19:07 PM
 */

package deliciousBlogger;

/**
 *
 * @author pborrego
 */
public class Profile extends javax.swing.JFrame {

    /** Creates new form Profile */
    public Profile() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        pnlDeliciousSettings = new javax.swing.JPanel();
        lblTag = new javax.swing.JLabel();
        txtTag = new javax.swing.JTextField();
        lblPasswordDelicious = new javax.swing.JLabel();
        txtPasswordDelicious = new javax.swing.JTextField();
        lblUsernameDelicious = new javax.swing.JLabel();
        txtUserDelicious = new javax.swing.JTextField();
        lblTimeSpan = new javax.swing.JLabel();
        txtTimeSpan = new javax.swing.JTextField();
        lblDelicious = new javax.swing.JLabel();
        cmbTimeSpan = new javax.swing.JComboBox();
        sprSettings = new javax.swing.JSeparator();
        pnlBloggerSettings = new javax.swing.JPanel();
        lblBlogger = new javax.swing.JLabel();
        lblFormat = new javax.swing.JLabel();
        lblLabel = new javax.swing.JLabel();
        txtLabel = new javax.swing.JTextField();
        spnFormat = new javax.swing.JScrollPane();
        txaFormat = new javax.swing.JTextArea();
        pnlBloggerSubSettings = new javax.swing.JPanel();
        lblPasswordBlogger = new javax.swing.JLabel();
        txtUserBlogger = new javax.swing.JTextField();
        lblPost = new javax.swing.JLabel();
        cmbPost = new javax.swing.JComboBox();
        lblTitleBlogger = new javax.swing.JLabel();
        txtPasswordBlogger = new javax.swing.JTextField();
        lblUsernameBlogger = new javax.swing.JLabel();
        txtTitle = new javax.swing.JTextField();
        pnlButtons = new javax.swing.JPanel();
        btnSave = new javax.swing.JButton();
        btnCancel = new javax.swing.JButton();

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));

        lblTag.setText("Containing tag(s):");

        txtTag.setText("jTextField4");

        lblPasswordDelicious.setText("Password:");

        txtPasswordDelicious.setText("jTextField2");

        lblUsernameDelicious.setText("User name:");

        txtUserDelicious.setText("jTextField1");
        txtUserDelicious.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtUserDeliciousActionPerformed(evt);
            }
        });

        lblTimeSpan.setText("Retrieve bookmarks from the last:");

        txtTimeSpan.setText("jTextField3");

        lblDelicious.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        lblDelicious.setText("Delicious Settings:");

        cmbTimeSpan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        org.jdesktop.layout.GroupLayout pnlDeliciousSettingsLayout = new org.jdesktop.layout.GroupLayout(pnlDeliciousSettings);
        pnlDeliciousSettings.setLayout(pnlDeliciousSettingsLayout);
        pnlDeliciousSettingsLayout.setHorizontalGroup(
            pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                .addContainerGap()
                .add(lblDelicious)
                .addContainerGap(146, Short.MAX_VALUE))
            .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                    .addContainerGap()
                    .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                            .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, pnlDeliciousSettingsLayout.createSequentialGroup()
                                    .add(lblPasswordDelicious)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                    .add(txtPasswordDelicious))
                                .add(org.jdesktop.layout.GroupLayout.LEADING, pnlDeliciousSettingsLayout.createSequentialGroup()
                                    .add(lblUsernameDelicious)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(txtUserDelicious))
                                .add(org.jdesktop.layout.GroupLayout.LEADING, lblTimeSpan))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(txtTimeSpan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(cmbTimeSpan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                            .add(lblTag)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(txtTag, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)))
                    .addContainerGap()))
        );
        pnlDeliciousSettingsLayout.setVerticalGroup(
            pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                .add(lblDelicious)
                .addContainerGap(149, Short.MAX_VALUE))
            .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(pnlDeliciousSettingsLayout.createSequentialGroup()
                    .add(39, 39, 39)
                    .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblUsernameDelicious)
                        .add(txtUserDelicious, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblPasswordDelicious)
                        .add(txtPasswordDelicious, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(21, 21, 21)
                    .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblTimeSpan)
                        .add(txtTimeSpan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(cmbTimeSpan, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(pnlDeliciousSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblTag)
                        .add(txtTag, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(17, Short.MAX_VALUE)))
        );

        getContentPane().add(pnlDeliciousSettings);
        getContentPane().add(sprSettings);

        lblBlogger.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        lblBlogger.setText("Blogger Settings:");

        lblFormat.setText("Delicious link format:");

        lblLabel.setText("Post label(s):");

        txtLabel.setText("jTextField8");

        txaFormat.setColumns(20);
        txaFormat.setRows(5);
        spnFormat.setViewportView(txaFormat);

        pnlBloggerSubSettings.setLayout(new java.awt.GridBagLayout());

        lblPasswordBlogger.setText("Password:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.ipadx = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(lblPasswordBlogger, gridBagConstraints);

        txtUserBlogger.setText("jTextField5");
        txtUserBlogger.setPreferredSize(new java.awt.Dimension(200, 20));
        txtUserBlogger.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtUserBloggerActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(txtUserBlogger, gridBagConstraints);

        lblPost.setText("Post to:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(lblPost, gridBagConstraints);

        cmbPost.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(cmbPost, gridBagConstraints);

        lblTitleBlogger.setText("Post title:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.ipadx = 5;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(lblTitleBlogger, gridBagConstraints);

        txtPasswordBlogger.setText("jTextField6");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(txtPasswordBlogger, gridBagConstraints);

        lblUsernameBlogger.setText("User name:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 5;
        pnlBloggerSubSettings.add(lblUsernameBlogger, gridBagConstraints);

        txtTitle.setText("jTextField7");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        pnlBloggerSubSettings.add(txtTitle, gridBagConstraints);

        org.jdesktop.layout.GroupLayout pnlBloggerSettingsLayout = new org.jdesktop.layout.GroupLayout(pnlBloggerSettings);
        pnlBloggerSettings.setLayout(pnlBloggerSettingsLayout);
        pnlBloggerSettingsLayout.setHorizontalGroup(
            pnlBloggerSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlBloggerSettingsLayout.createSequentialGroup()
                .addContainerGap()
                .add(pnlBloggerSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(spnFormat, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE)
                    .add(lblBlogger)
                    .add(pnlBloggerSettingsLayout.createSequentialGroup()
                        .add(lblLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(txtLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE))
                    .add(lblFormat)
                    .add(pnlBloggerSubSettings, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 269, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnlBloggerSettingsLayout.setVerticalGroup(
            pnlBloggerSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlBloggerSettingsLayout.createSequentialGroup()
                .add(11, 11, 11)
                .add(lblBlogger)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(pnlBloggerSubSettings, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(11, 11, 11)
                .add(lblFormat)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(spnFormat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(11, 11, 11)
                .add(pnlBloggerSettingsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(lblLabel)
                    .add(txtLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        getContentPane().add(pnlBloggerSettings);

        btnSave.setText("Save");

        btnCancel.setText("Cancel");

        org.jdesktop.layout.GroupLayout pnlButtonsLayout = new org.jdesktop.layout.GroupLayout(pnlButtons);
        pnlButtons.setLayout(pnlButtonsLayout);
        pnlButtonsLayout.setHorizontalGroup(
            pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlButtonsLayout.createSequentialGroup()
                .add(btnCancel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(btnSave)
                .addContainerGap(191, Short.MAX_VALUE))
        );
        pnlButtonsLayout.setVerticalGroup(
            pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlButtonsLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                .add(btnCancel)
                .add(btnSave))
        );

        getContentPane().add(pnlButtons);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txtUserDeliciousActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtUserDeliciousActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtUserDeliciousActionPerformed

    private void txtUserBloggerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtUserBloggerActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txtUserBloggerActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Profile().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancel;
    private javax.swing.JButton btnSave;
    private javax.swing.JComboBox cmbPost;
    private javax.swing.JComboBox cmbTimeSpan;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JLabel lblBlogger;
    private javax.swing.JLabel lblDelicious;
    private javax.swing.JLabel lblFormat;
    private javax.swing.JLabel lblLabel;
    private javax.swing.JLabel lblPasswordBlogger;
    private javax.swing.JLabel lblPasswordDelicious;
    private javax.swing.JLabel lblPost;
    private javax.swing.JLabel lblTag;
    private javax.swing.JLabel lblTimeSpan;
    private javax.swing.JLabel lblTitleBlogger;
    private javax.swing.JLabel lblUsernameBlogger;
    private javax.swing.JLabel lblUsernameDelicious;
    private javax.swing.JPanel pnlBloggerSettings;
    private javax.swing.JPanel pnlBloggerSubSettings;
    private javax.swing.JPanel pnlButtons;
    private javax.swing.JPanel pnlDeliciousSettings;
    private javax.swing.JScrollPane spnFormat;
    private javax.swing.JSeparator sprSettings;
    private javax.swing.JTextArea txaFormat;
    private javax.swing.JTextField txtLabel;
    private javax.swing.JTextField txtPasswordBlogger;
    private javax.swing.JTextField txtPasswordDelicious;
    private javax.swing.JTextField txtTag;
    private javax.swing.JTextField txtTimeSpan;
    private javax.swing.JTextField txtTitle;
    private javax.swing.JTextField txtUserBlogger;
    private javax.swing.JTextField txtUserDelicious;
    // End of variables declaration//GEN-END:variables

}
